// 关于审批模块的接口
import request from '@/utils/request'

export const getApprovalList = (departId, userId) => {
  return request({
    url: `/user/process/instance/${departId}/${userId}`,
    method: "get"
  })
}
// 获取审批详情
export const getApprovalDetail = (id) => {
  return request({
    url: `/user/process/instance/${id}`,
    method: "get"
  })
}
// 获取审批流程
export const getApprovalProcess = (id) => {
  return request({
    url: `/user/process/instance/tasks/detail/${id}`,
    method: "get"
  })
}
